import request from "@/request/api";
/* 设备异动 */


//查询分页列表
export function getListApi(data) {
  return request({
    url: "/eam-service-device/equipmentChange/list",
    method: "get",
    params: data,
  });
}
//删除变更单
export function deleteApi(id = "") {
  return request({
    url: "/eam-service-device/equipmentChange/delete",
    method: "get",
    params: {
      id
    },
  });
}
//查询单个变更单
export function getDetailsApi(id = "") {
  return request({
    url: "/eam-service-device/equipmentChange/getById",
    method: "get",
    params: {
      id
    },
  });
}
//新增变更单
export function insertApi(data) {
  return request({
    url: "/eam-service-device/equipmentChange/saveOrUpdate",
    method: "post",
    data: data,
  });
}

//获取设备常用参数值
export function getBatchGenericParams(data) {
  return request({
    url: "/eam-service-device/equipment/getBatchGenericParams",
    method: "post",
    data: data,
  });
}